Comprehension of Object-Oriented Software Cohesion: The Empirical Quagmire

نویسندگان

  • Steve Counsell
  • Emilia Mendes
  • Stephen Swift
چکیده

It is a little over ten years sinc e Chidamber and Kemerer's obje ct-oriented (OO) metric suite which included the Lack of Cohesion Of Methods (LCOM) metric was rst proposed [9]. Despite considerable e ort both theoretically and empirically sinc e then, the softwar eengineering community is still no ne arer nding a generally ac cepte d de nition or me asure of OO cohesion. Y et,achieving highly cohesive software is a cornerstone of software comprehension and hence, maintainability. In this pap er, we suggest a number of suppositions as to why a de nition has eluded (and we feel will continue to elude) us. We supp ortthese suppositions with empirical evidence from three large C++ systems and a cohesion metric based on the parameters of the class methods; we also draw from other related work. Two major conclusions emerge from the study. Firstly, any sensible cohesion metric does at least provide insight into the featur es of the systems being analysed. Se condly however, and less reassuringly, the deeper the investigative search for a de nitive measur eof cohesion, the more problematic its understanding becomes; this casts serious doubt on the use of cohesion as a meaningful featur eof obje ct-orientation and its viability as a tool for software comprehension.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Empirical Exploration for the Correlation between Class Object-Oriented Connectivity-Based Cohesion and Coupling

Attributes and methods are the basic contents of an object-oriented class. The connectivity among these class members and the relationship between the class and other classes play an important role in determining the quality of an object-oriented system. Class cohesion evaluates the degree of relatedness of class attributes and methods, whereas class coupling refers to the degree to which a cla...

متن کامل

Improving Object-Oriented Lack-of-Cohesion Metric by Excluding Special Methods

Classes are the basic units in object-oriented programs, and therefore, their quality has impact on the overall quality of the software. Class cohesion is a key quality factor, and it refers to the degree of relatedness of class attributes and methods. Software developers use class cohesion measure to assess the quality of their products and to guide the restructuring of poorly designed classes...

متن کامل

Predicting Maintainability with Object-Oriented Metrics - An Empirical Comparison

A large number of metrics have been proposed for measuring properties of object-oriented software such as size, inheritance, cohesion and coupling. We have been investigating which of these object-oriented metrics can be used as significant predictors for the maintainability of software. For this purpose, we have designed and conducted an empirical study based on historical data collected from ...

متن کامل

A Knowledge-Based Cohesion Metric for Object-Oriented Software

This paper presents Percentage of Shared Ideas (PSI), a metric for measuring the semantic cohesion of a class in object-oriented software. PSI uses information in a knowledge base to quantify the cohesiveness of a class’s task in the problem domain, allowing a clearer view of cohesion than code syntax provides. Furthermore, this metric is independent of code structure and could be calculated be...

متن کامل

Improving Class Cohesion Measurement: Towards a Novel Approach Using Hierarchical Clustering

Class cohesion is considered as one of the most important object-oriented software attributes. High cohesion is, in fact, a desirable property of software. Many different metrics have been suggested in the last several years to measure the cohesion of classes in object-oriented systems. The class of structural object-oriented cohesion metrics is the most investigated category of cohesion metric...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002